package ADT;
public class User {

	private String name;
	private char priority;

	public User(String name, char priority) {
		this.name = name;
		if (priority == 'h' || priority == 'm' || priority == 'l')
			this.priority = priority;
		else {
			System.out.println("You are trying to initialize the process "
					+ name + " with an invalid priority");
			System.exit(0);
		}
	}

	public String toString() {
		return "Name: " + name + "\tPriority: " + priority;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public char getPriority() {
		return priority;
	}

	public void setPriority(char priority) {
		this.priority = priority;
	}
}
